package com.example.liao.day9_13;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.ImageView;

import com.github.chrisbanes.photoview.OnPhotoTapListener;
import com.github.chrisbanes.photoview.PhotoView;

public class PicActivity extends AppCompatActivity {

    private PhotoView phShow;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pic);
        initView();
//        initData();
    }

//    private void initData() {
//
//
//        phShow.setOnPhotoTapListener(new OnPhotoTapListener() {
//            @Override
//            public void onPhotoTap(ImageView view, float x, float y) {
//                finish();
//            }
//        });
//    }

    private void initView() {
        phShow = findViewById(R.id.ph_show);
        phShow.setImageResource(R.mipmap.wugeng);
//        phShow.setEnabled(true);
    }

}
